package model;


public class Address {

	public static class AddressBuilder {

		private String street;
		private String streetNr;
		private String zip;
		private String city;

		public AddressBuilder street(String street) {
			this.street = street;
			return this;
		}

		public AddressBuilder streetNr(String streetNr) {
			this.streetNr = streetNr;
			return this;
		}

		public AddressBuilder zip(String zip) {
			this.zip = zip;
			return this;
		}

		public AddressBuilder city(String city) {
			this.city = city;
			return this;
		}

		public Address build() {
			return new Address(this);
		}

	}

	private String street;
	private String streetNr;
	private String zip;
	private String city;

	private Address(AddressBuilder builder) {
		street = builder.street;
		streetNr = builder.streetNr;
		zip = builder.zip;
		city = builder.city;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getStreetNr() {
		return streetNr;
	}

	public void setStreetNr(String streetNr) {
		this.streetNr = streetNr;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

}
